public class TestBanque{

public static void main(String [] args){
	try{
		Banque banque = new Banque();

		banque.ouvrirCompte("Dupont","password");
		banque.ouvrirCompte("Bonjour","password2");

		banque.deposer(1500,banque.getCompte("Dupont","password"));
		banque.deposer(150,banque.getCompte("Bonjour","password2"));

		banque.retirer(1000,banque.getCompte("Dupont","password"));
		banque.retirer(100,banque.getCompte("Bonjour","password2"));

		System.out.println(banque.solde(banque.getCompte("Dupont","password")));
		System.out.println(banque.solde(banque.getCompte("Bonjour","password2")));

		banque.fermerCompte("Dupont","password");
		banque.fermerCompte("Bonjour","password2");

		System.out.println("Thanks !");
	}
	catch(Exception e){
		System.out.println("\n"+e);
	}
}

}

